/**
 * 
 */
package org.insia.smartposse.metier.webservice;

import java.io.Serializable;

import org.insia.smartposse.metier.Messagerie;

/**
 * @author raguerri
 * @since 18 avr. 07
 * @version 0.0.1
 * 
 */
public class LightMessagerie 
implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -4659362700078426366L;
	private long id;
	private long user_recip;
	private long user_sender;
	private String title;
	private String message;
	private int read;
	
	/**
	 * 
	 *
	 */
	public LightMessagerie () {
		
	}
	
	/**
	 * 
	 * @param msg
	 */
	public LightMessagerie (Messagerie msg) {
		id = msg.getId();
		user_recip = msg.getUser_recip().getId();
		user_sender = msg.getUser_sender().getId();
		title = msg.getTitle();
		message = msg.getMessage();
		read = msg.getRead();
	}

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @return the read
	 */
	public int getRead() {
		return read;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @return the user_recip
	 */
	public long getUser_recip() {
		return user_recip;
	}

	/**
	 * @return the user_sender
	 */
	public long getUser_sender() {
		return user_sender;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @param read the read to set
	 */
	public void setRead(int read) {
		this.read = read;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @param user_recip the user_recip to set
	 */
	public void setUser_recip(long user_recip) {
		this.user_recip = user_recip;
	}

	/**
	 * @param user_sender the user_sender to set
	 */
	public void setUser_sender(long user_sender) {
		this.user_sender = user_sender;
	}
}
